from django.shortcuts import render_to_response
from django.template.context import RequestContext
from catalog.models import Category

def show_category_tree(request):
 
    return render_to_response("category_tree.html",
                              {'nodes':Category.tree.all()},
                              context_instance=RequestContext(request))